#include "my_string.h"


int my_strlen(const char* s)
{
    const char* end = s;
    while(*end != '\0') 
    {
        end++;
    }
    return end-s;
}
int my_strcmp(const char* src,const char* des)
{
    while(*src != '\0' && *des != '\0' && *src++ == *des++);
    if (*src == *des && *src == '\0') return 0; 
    return *src-*des > 0 ? 1 : -1;
}

